﻿Through the use of matrix A, which has the elements [3,1], [2,4]; once the matrix is entered, expand (charpoly (A, x)) is calculated, where A is the name of the matrix, x the polynomial variable, resulting in x ^ 2-7 * x + 10